function main(defaultParams) {
    const self = this;
    debugger
    if (defaultParams.moduleActionType !== 'form-save') {
        return;
    }

    let verifyStateIdValue = defaultParams.callbackParams.result.root_fsp1ft.radio_1j0h7u;
    let appointmentVerifyIdValue = defaultParams.callbackParams.result.documentNo
    // 审核通过或审核不通过
    if (verifyStateIdValue === '1') {
        updateLawStallAppointmentRecordInfo(self, appointmentVerifyIdValue)
    }

    const pageListEle = self.$$("page_widget_list_a8nzg3");
    const listRenderView = pageListEle.$$getRenderElement();
    const currentListEle = listRenderView.$$getListElement();
    currentListEle.$$refreshData();
}


/**
 * 更新预约审核记录 law_stall_appointment_record_info
 */
function updateLawStallAppointmentRecordInfo(self, appointmentVerifyId) {
    let updateSql = "UPDATE('ds_tbl:t_bff53c221c8c45898d6ce2809c4eb637',QUERY_EQ('appointment_verify_id'," + appointmentVerifyId + "),'',['appointment_state_id','1'])"
    api.EXEC_FORMULA(updateSql).then((res) => {
        console.log(res)
    })
}
